package com.he.architecture.service;

import com.he.architecture.common.service.LogicService;
import com.he.architecture.dao.ShopDao;
import com.he.architecture.entity.Shop;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShopService extends LogicService<ShopDao, Shop,Long> {
    /**
     * 默认构造器
     */
    public ShopService(@Autowired ShopDao sd) {
        super(sd);
    }

    public List<Shop> getShopsByBusiness_Id(Long bus_id){
        return getDAO().getShopsByBusiness_Id(bus_id);
    }
}
